<template>
    <div class="head-nav">
          <!-- 行：row ;  列：col -->
        <el-row>
            <!-- 头部左侧 -->
            <el-col :span='6' class='logo-container'>
                <img src="../assets/logo.png" class='logo' alt="">
                <span class='title'> 后台管理系统 </span>
            </el-col>
            <!-- 头部右侧 -->
            <el-col :span='6' class='user'>
                
                <div class='userinfo'>
                    <img src="" class='avatar'/>
                    <div class='welcome'>
                        <p class='name comename'>欢迎</p>
                        <p class='name avatarname'> 小明</p>
                    </div>
                    <div class='username'>
                        <el-dropdown
                      
                        >
                            <span class="el-dropdown-link">
                               <i class="el-icon-arrow-down el-icon--right"></i>
                            </span>
                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item >个人信息</el-dropdown-item>
                                <el-dropdown-item >退出</el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </div>
                </div>
                

            </el-col>
        </el-row>
    </div>
</template>
<script>
export default {
    name:'head-nav'
}
</script>
<style scoped>
.head-nav{
    width:100%;
    height: 60px;
    min-width: 600px;
    padding:5px;
    background: #324057;
    color:#fff;
    border-bottom: 1px solid #1f2d3d;
}
.logo-container{
    line-height: 60px;
    min-width: 400px;
}
.logo{
    height: 50px;
    width: 50px;
    margin-right: 5px;
    vertical-align:middle;
    display: inline-block;
}
.title{
    vertical-align: middle;
    font-size:22px;
    font-family:"Microsoft YaHei";
    letter-spacing: 3px;

}
.user{
    line-height: 60px;
    text-align: right;
    float: right;
    padding-left: 10px;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
    cursor:pointer;

}
.welcome{
    display:inline-block;
    width:auto;
    vertical-align: middle;
    padding: 0 5px;
}
.name{
    line-height: 20px;
    text-align: center;
    font-size: 14px;
}
.comename{
    font-size: 12px;

}
.avatarname{
    color:#409eff;
    font-weight: bolder;
}
.username{
    cursor:pointer;
    margin-right: 5px;
    display: inline;
}
.el-dropdown{
    color: #fff;
}
</style>